export default {
  data() {
    return {
      statusBarHeight: 0 // 获取当前状态栏高度
    }
  },
  onLoad() {
    console.log("mixin!!");
    this.setStatusBar()
  },
  methods: {
    setStatusBar() {
      console.log(JSON.stringify(uni.getWindowInfo()));
      const { statusBarHeight } = uni.getWindowInfo();
      this.statusBarHeight = statusBarHeight
    }
  }
}